package com.wolf.gulimall.auth.feign;


import com.wolf.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("gulimall-third-party")
public interface ThirdPartFeignService {

    /**
     * 提供给别的服务进行调用
     * @param phone 手机号
     * @param code 需要发送的验证码
     * @return 是否发送成功
     */
    @GetMapping("/sms/sendCode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
